//sum()
function sum(){
    var sum=Number(stack[stack.length-1]);
    sum+=Number(stack[stack.length-2]);
    stack.pop();
    stack.pop();
    stack.push(sum);
    updateTerminal();
}

